import { View } from "@tarojs/components";
import "./index.scss";

interface IProps {
  info: any;
}

// {
//   id: "1",
//   name: "生成最近三年的运营数据柱状图",
//   scheduleConf: "生成最近三年的运营数据柱状图",
//   formatScheduleConf: "每三天",
//   scheduleType: 0,
//   status: 1,
//   updateTime: "2023.12.08",
//   createTime: "2023.12.08",
// },

const ChatTaskItem: React.FC<IProps> = ({ info }) => {
  return (
    <View
      className={`chat_task_item ${
        String(info?.status) === "1" ? "" : "chat_task_item_stop"
      }`}
    >
      <View className="chat_task_item_time">
        <View className="chat_task_item_time_frequency">
          {info?.formatScheduleConf || ""}
        </View>
        <View className="chat_task_item_time_last">{info.updateTime}</View>
      </View>
      <View className="chat_task_item_detail">{info?.scheduleConf || ""}</View>
    </View>
  );
};

export default ChatTaskItem;
